package models;

import java.sql.ResultSet;
import java.sql.SQLException;

public class CustomerLoginModel extends AbstractModel {

	public boolean validateLogin(String cid, String password){
		try {
			ps = con.prepareStatement("SELECT * FROM Customer WHERE cid = ? AND password = ?");
	
		    ps.setString(1, cid);
		    ps.setString(2, password);
		  	
		    return ps.executeQuery().next();
		} catch (SQLException ex) { ex.printStackTrace(); return registerException(ex); }
	}
	
	@Override
	public ResultSet show() {
		// TODO Auto-generated method stub
		return null;
	}

}
